import Axios from "axios";
import {get,post} from "./http";

//============歌手相关================
//查询所有歌手
export const getAllSinger =() => get(`singer/allSinger`);

//============歌曲相关================
//根据歌手id查询歌曲
export const songOfSingerId =(id) => get(`song/singer/detail?singerId=${id}`);
//根据歌曲id查询歌曲对象
export const songOfSongId =(id) => get(`song/detail?songId=${id}`);
//根据歌手名字、歌曲名字模糊查询歌曲
export const likeSongOfName =(keywords) => get(`song/likeSongOfName?songName=${keywords}`);
//查询所有歌曲
export const allSong =() => get(`song/allSong`)
//============榜单相关================
//查询所有榜单
export const getAllRankList =() => get(`rank/allRank`);

//============榜单的歌曲相关============
//根据榜单id查询歌曲列表
export const rankSongDetail = (rankId) => get(`rankSong/detail?rankId=${rankId}`);


